import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import router from './router';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './assets/css/style.css'

const app = createApp(App)
const pinia = createPinia();

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

pinia.use(piniaPluginPersistedstate); // pinia持久化插件
app.use(pinia);
app.use(router);
app.use(ElementPlus)
app.mount('#app')